package ch4oopexer1;
/*汽车有座位数、排量等属性。有启动、刹车、等方法*/
public class Car {
    int seat;
    double vol;

    public Car(int seat, double vol) {
        this.seat = seat;
        this.vol = vol;
    }

    public void run(){
        System.out.println("汽车启动！");
    }
    public void brake(){
        System.out.println("汽车刹车");
    }
}
